package etcd

import (
	"awesomeProject/goods-web/utils/register"
)

type Registry struct {
	Host string
	Port int
}

// 通过接口实现多态

func NewRegistryClient(host string, port int) register.RegistryClient {

	return &Registry{Host: host, Port: port}
}

func (r *Registry) Register(host string, port int, name string, tag []string, id string) error {

	// 实现关于etcd的注册逻辑
	return nil
}
func (r *Registry) Deregister(serviceId string) error {
	
	return nil
}
